import instance from "@/util/axios";

// 获取规格列表
export const getSpecificationList = () => instance.get('/specification/list.do')

// 分页获取规格信息
export const getSpecificationByPage = (page, pageSize) => instance.get('/specification/findByPage.do', {
  params: {
    page,
    pageSize
  }
})

// 条件查询带分页
export const searchSpecifications = (page, pageSize, data) =>
  instance.post(`/specification/search.do?page=${page}&pageSize=${pageSize}`, data)

// 添加规格
export const addSpecification = (data) =>
  instance.post('/specification/save.do', data)

